
import { utils } from 'hi-ui';
export default {
    id: "DrugDatabaseEntity",
    modelFile: "database/drug/dataset/DrugDatabaseEntity.xml",
    sortFields: [
        "id",
        "indx",
        "an",
        "name",
        "ename",
        "tname",
        "dsform",
        "spec",
        "mah",
        "unit",
        "addr",
        "cat",
        "adate",
        "oan",
        "dbc",
        "dbcn",
        "writetime",
        "updatetime",
        "script",
        "pinyin",
        "firstpy",

    ],
    fields: {
        id: {
            name: "id", //字段ID
            label: "ID", //字段描述
            dbtype: "dbString", //数据类型
            default: {
                //默认值
                //rule: 'first', //prior   填充规则
                exps: (data) => {
                    //填充表达式
                    return utils.string.guid();
                },
            },
        },

        indx: {
            name: "indx", //字段ID
            label: "索引", //字段描述
            dbtype: "dbInt", //数据类型

        },

        an: {
            name: "an", //字段ID
            label: "批准文号", //字段描述
            dbtype: "dbString", //数据类型
            length: 50,

        },
        name: {
            name: "name", //字段ID
            label: "产品通用名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,

        },
        pinyin: {
            name: "pinyin", //字段ID
            label: "全拼", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,

        },

        firstpy: {
            name: "firstpy", //字段ID
            label: "简拼", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,

        },


        ename: {
            name: " ename", //字段ID
            label: "英文通用名称", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,

        },

        tname: {
            name: "tname", //字段ID
            label: "商品名", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },

        dsform: {
            name: "dsform", //字段ID
            label: "剂型", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },

        spec: {
            name: "spec", //字段ID
            label: "规格", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },

        mah: {
            name: "mah", //字段ID
            label: "上市许可持有人", //字段描述
            dbtype: "dbString", //数据类型  
            length: 100,
        },

        unit: {
            name: "unit", //字段ID
            label: "生产单位", //字段描述
            dbtype: "dbString", //数据类型
            length: 250,
        },

        addr: {
            name: "addr", //字段ID
            label: "生产地址", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },

        cat: {
            name: "cat", //字段ID
            label: "产品类型", //字段描述
            dbtype: "dbString", //数据类型
            length: 40,
        },

        adate: {
            name: "adate", //字段ID
            label: "批准日期", //字段描述
            dbtype: "dbDate", //数据类型

        },

        oan: {
            name: "oan", //字段ID
            label: "原批准文号", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },

        dbc: {
            name: "dbc", //字段ID
            label: "药品本位码", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },

        dbcn: {
            name: "dbcn", //字段ID
            label: "药品本位码备注", //字段描述
            dbtype: "dbString", //数据类型
            length: 250,
        },

        writetime: {
            name: "writetime", //字段ID
            label: "插入时间", //字段描述
            dbtype: "dbDate", //数据类型

        },

        updatetime: {
            name: "updatetime", //字段ID
            label: "更新时间", //字段描述
            dbtype: "dbDate", //数据类型

        },

        script: {
            name: "script", //字段ID
            label: "索引脚本", //字段描述
            dbtype: "dbString", //数据类型
            length: 100,
        },



    }
    //action: "autoAction",
}
